package com.andy.beef.ui.main.viewmodel

import com.andy.module.base.BasePageListViewModel
import com.andy.module.network.ApiPagerResponse
import com.andy.module.network.ApiResponse
import com.andy.beef.ui.main.api.CattleApiService
import com.andy.beef.ui.main.api.cattleService
import com.andy.beef.ui.main.bean.FenceBean

/**
 * @creator:LuoFan
 * @date:2022/6/6
 * @description:
 */
class ChooseFenceViewModel : BasePageListViewModel<FenceBean>() {

    override suspend fun genRequest(): ApiResponse<ApiPagerResponse<FenceBean>> {
        return cattleService.getFenceList(CattleApiService.URL_FENCE_LIST, params)
    }
}